package team.yidong.fenda.wx.Service.Impl;

import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import team.yidong.fenda.entity.HospitalField;
import team.yidong.fenda.repository.HospitalFieldRepository;
import team.yidong.fenda.service.HospitalFieldService;
import team.yidong.fenda.wx.Service.WxHospitalFieldService;

import java.util.List;

/**
 * Created by xuanlong on 2017/10/17.
 */
@Service
public class WxHospitalFieldServiceImpl implements WxHospitalFieldService {
    @Autowired
    HospitalFieldRepository hospitalFieldRepository;

    @Override
    public List<HospitalField> findHospitalFieldByHospital(Integer id) {
        return hospitalFieldRepository.findHospitalFieldByHospital(id);
    }

}
